package com.ozo.easy.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ozo.easy.common.model.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;


/**
 * 菜单
 *
 * @author ozo
 * @version 1.0
 * @date 2025-02-14 17:13:43
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_menu")
public class SysMenu extends BaseEntity {

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 路由
     */
    @TableField("route")
    private String route;

    /**
     * 编码
     */
    @TableField("code")
    private String code;

    /**
     * 排序号
     */
    @TableField("order_num")
    private Integer orderNum;

    /**
     * 是否启用
     */
    @TableField("enable_flag")
    private Boolean enableFlag;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 父级菜单id
     */
    @TableField(value = "parent_id", updateStrategy = FieldStrategy.IGNORED)
    private Long parentId;

}
